package com.zgjkhis.modules.system.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author yzq
 * @Description 药品入库清单
 * @Date 2021/6/23 9:38
 * @Param
 * @return
 **/
@Data
public class DrugRemainDetailUpdate implements Serializable {

    @TableId
    @ApiModelProperty(value = "主键id(修改时必填)",required = true)
    @NotNull(message = "id不能为空")
    private Long id;
    @ApiModelProperty(value = "有效期",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date termOfValidity;
    @ApiModelProperty(value = "批次号",required = true)
    @NotNull(message = "批次号不能为空")
    private String batchNo;

}
